//
//  MBMessageTableCellViewModel.m
//  MemberBusiness-ios
//
//  Created by cherry pu on 2018/4/25.
//  Copyright © 2018年 zhangXin. All rights reserved.
//

#import "MBMessageTableCellViewModel.h"

@implementation MBMessageTableCellViewModel
@dynamic dataModel;

-(NSNumber*)totalHeight
{
    CGFloat height = [UIView lf_sizeFromIphone6:80];
    height += [self.dataModel.content boundingRectWithSize:CGSizeMake([UIView lf_sizeFromIphone6:290], 999) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont lf_systemFontOfSize:13]} context:nil].size.height;
    height += [UIView lf_sizeFromIphone6:12];
    return @(height);
}
@end
